package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

type DanceChannel struct {
	Id           int64          `json:"id" gorm:"primaryKey;autoIncrement;comment:频道id"`
	Url          string         `json:"url" gorm:"column:url;type:varchar(255);not null;default:'';comment: 服务接口"`          //
	CatPid       int64          `json:"catPid" gorm:"column:cat_pid;type:int;default:0;not null;comment:上级id"`              //
	Level        int8           `json:"level" gorm:"column:level;type:tinyint;default:0;not null;comment:1:一级;2:二级;3:三级"`   //
	Name         string         `json:"name" gorm:"column:name;type:varchar(255);not null;default:'';comment:昵称"`           //
	CommonNumber int64          `json:"common_number" gorm:"column:common_number;type:int;default:0;not null;comment:普通数量"` //
	VipNumber    int64          `json:"vipNumber" gorm:"column:vip_number;type:int;default:0;not null;comment:vip数量"`       //
	Status       int8           `json:"status" gorm:"column:status;type:tinyint;default:0;not null;comment:1: 可以用, 2:停服"`   //
	CreatedAt    time.Time      `json:"createdAt" gorm:"column:created_at;type:datetime"`
	UpdatedAt    time.Time      `json:"updatedAt" gorm:"column:updated_at;type:datetime"`
	DeletedAt    gorm.DeletedAt `json:"-" gorm:"index;type:datetime"`
}
